package com.hornsun.data.dbo;

import java.util.Date;

public class Authorization {
    private String clientGuid;

    private String authApp;

    private String authQuota;

    private Integer pointsForlogin;

    private Integer validityTime;

    private Integer offlineTime;

    private Date time;

    public String getClientGuid() {
        return clientGuid;
    }

    public void setClientGuid(String clientGuid) {
        this.clientGuid = clientGuid == null ? null : clientGuid.trim();
    }

    public String getAuthApp() {
        return authApp;
    }

    public void setAuthApp(String authApp) {
        this.authApp = authApp == null ? null : authApp.trim();
    }

    public String getAuthQuota() {
        return authQuota;
    }

    public void setAuthQuota(String authQuota) {
        this.authQuota = authQuota == null ? null : authQuota.trim();
    }

    public Integer getPointsForlogin() {
        return pointsForlogin;
    }

    public void setPointsForlogin(Integer pointsForlogin) {
        this.pointsForlogin = pointsForlogin;
    }

    public Integer getValidityTime() {
        return validityTime;
    }

    public void setValidityTime(Integer validityTime) {
        this.validityTime = validityTime;
    }

    public Integer getOfflineTime() {
        return offlineTime;
    }

    public void setOfflineTime(Integer offlineTime) {
        this.offlineTime = offlineTime;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", clientGuid=").append(clientGuid);
        sb.append(", authApp=").append(authApp);
        sb.append(", authQuota=").append(authQuota);
        sb.append(", pointsForlogin=").append(pointsForlogin);
        sb.append(", validityTime=").append(validityTime);
        sb.append(", offlineTime=").append(offlineTime);
        sb.append(", time=").append(time);
        sb.append("]");
        return sb.toString();
    }
}